package com.tansun.easycare.rule.table.decisiontable.service;

import com.tansun.easycare.rule.common.service.RuleBaseService;
import com.tansun.easycare.rule.exception.BizException;
import com.tansun.easycare.rule.table.decisiontable.model.TableEntity;
import com.tansun.easycare.rule.table.entity.RuleDecisiontableDetail;

public interface DecisionTableService extends RuleBaseService<RuleDecisiontableDetail> {


    /**
     * 保存决策表明细信息
     */
    void saveOrUpdate(TableEntity tableEntity) throws BizException;
    
    /**
     * 显示java代码
     * @param tableEntity
     * @throws BizException
     */
    String showJavaCode(TableEntity tableEntity) throws BizException;

    /**
     * 决策表赋值
     */
    void copyRule(String manageId,String rankRelationId) throws BizException;

    /**
     * 将决策表转换成决策树
     *
     * @param id 决策表ID
     */
    void transferToTree(String id,String rankRelationId) throws Exception;

    /**
     * 转换决策表
     *
     * @param id 决策表ID
     */
    void transferToSingleTbl(String id,String rankRelationId) throws Exception;
}
